package com.glory.hikvisionmobile.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.hikvisionmobile.R;
import com.glory.hikvisionmobile.bean.search.SearchDieBean;
import com.glory.hikvisionmobile.bean.search.WorkThingBean;

import java.util.List;

public class SearchDieListAdapter extends BaseQuickAdapter<SearchDieBean, BaseViewHolder> {

    public SearchDieListAdapter(@Nullable List<SearchDieBean> data) {
        super(R.layout.adapter_search_die_list,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SearchDieBean item) {
        int adapterPosition = helper.getAdapterPosition();

        helper.setText(R.id.tvNum,String.valueOf(adapterPosition + 1));
        helper.setText(R.id.tvOldLotId,item.getOldLotId());
        helper.setText(R.id.tvLotID,item.getLotId());
        helper.setText(R.id.tvTubeShellId,item.getTubeShellId());
        helper.setText(R.id.tvWaferID,item.getWaferId());
        helper.setText(R.id.tvDiePosition,item.getDiePostion());
        helper.setText(R.id.tvWoId,item.getWoId());



    }


}
